package gameplay;

public class Point {
  private int x;
  private int y;
  private int value;
  
  public Point(int x, int y) {
    this.x = x;
    this.y = y;
  }
  
  public Point(int value) {
    this.value = value;
  }
  
  public Point(int x, int y, int value) {
    this.x = x;
    this.y = y;
    this.value = value;
  }
  
  public int getX() {
    return x;
  }
  public void setX(int x) {
    this.x = x;
  }
  public int getY() {
    return y;
  }
  public void setY(int y) {
    this.y = y;
  }
  public boolean equalsTo(Point p) {
    return p.getX() == x && p.getY() == y;
  }
  
  public String toString() {
//    return " " + value;
    return "(" + x + "," + y + ": " + value + ")";    
  }

  public void setValue(int value) {
    this.value = value;
  }

  public int getValue() {
    return value;
  }
  
  
}
